import { createRouter, createWebHistory } from "vue-router";
 
let routes= [
    {
        path:'/mainpage',
        name: 'mainpage',
        component: () => import('../views/mainpage/index.vue'),
    },
    {
        path:'/allproductpage',
        name: 'allproductpage',
        component: () => import('../views/allproductpage/index.vue'),
    },
    {
        path:'/productsellpage',
        name: 'productsellpage',
        component: () => import('../views/productsellpage/index.vue'),
    },
    {
        path:'/storepage',
        component: () => import('../views/storepage/index.vue'),
    },
    {
        path:'/searchpage',
        component: () => import('../views/searchpage/index.vue'),
    },
    {
        path:'/shoppingCart',
        component: () => import('../views/shoppingCart/index.vue'),
    },
    {
        path:'/accounts',
        component: () => import('../views/accounts/index.vue')
    },
    {
        path:'/address',
        component: () => import('../views/address/address.vue')
    },
    {
        path:'/order',
        component: () => import('../views/order/order.vue')
    },
    {
        path:'/starpage',
        component: () => import('../views/starpage/starpage.vue')
    }
]
// 路由
const router = createRouter({
    history: createWebHistory(),
    routes
})
// 导出
export default router 